package com.ruoyi.system.mapper.process;


import com.ruoyi.system.domain.process.ProcessRibbonInventory;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 并卷和加工库存关联Mapper接口
 * 
 * @author ljx
 * @date 2020-07-07
 */
public interface ProcessRibbonInventoryMapper 
{
    /**
     * 查询并卷和加工库存关联
     * 
     * @param id 并卷和加工库存关联ID
     * @return 并卷和加工库存关联
     */
    public ProcessRibbonInventory selectProcessRibbonInventoryById(Long id);

    /**
     * 查询并卷和加工库存关联列表
     * 
     * @param processRibbonInventory 并卷和加工库存关联
     * @return 并卷和加工库存关联集合
     */
    public List<ProcessRibbonInventory> selectProcessRibbonInventoryList(ProcessRibbonInventory processRibbonInventory);
    List<ProcessRibbonInventory> selectRibbonInventoryIds(@Param("ids") List<Long> ids);
    /**
     * 新增并卷和加工库存关联
     * 
     * @param processRibbonInventory 并卷和加工库存关联
     * @return 结果
     */
    public int insertProcessRibbonInventory(ProcessRibbonInventory processRibbonInventory);
    //批量插入关联关系表
    int insertList(@Param("ribbonId") Long ribbonId, @Param("inventoryIds") List<String> inventoryIds);

    /**
     * 修改并卷和加工库存关联
     * 
     * @param processRibbonInventory 并卷和加工库存关联
     * @return 结果
     */
    public int updateProcessRibbonInventory(ProcessRibbonInventory processRibbonInventory);

    /**
     * 删除并卷和加工库存关联
     * 
     * @param id 并卷和加工库存关联ID
     * @return 结果
     */
    public int deleteProcessRibbonInventoryById(Long id);

    /**
     * 批量删除并卷和加工库存关联
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    public int deleteProcessRibbonInventoryByIds(String[] ids);
    int deleteByIds(@Param("ids") List<Long> ids);

    int deleteByRibbonIds(String[] ids);

    int deleteByInventoryId(Long InventoryId);
}
